]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Also ignore hidden windows for proximity
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Oct 2018 14:05:01 +0000 (16:05 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Oct 2018 14:24:22 +0000 (16:24 +0200)
We currently only ignore minimized windows, not windows that are
hidden for other reasons - namely on wayland windows are initially
hidden until they are placed.

This fixes a flicker in the transparent top bar on wayland when the
"position" of an unplaced window wrongly suggests the window is
overlapping the top bar.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/693

js/ui/panel.js

index 49759af4c35ccdf14182bd35fc25d9a199b92856..1c6445a3521d3cc231dafdd99bd6372b8b445de5 100644 (file)
@@ -1087,6 +1087,7 @@ var Panel = new Lang.Class({
         let windows = activeWorkspace.list_windows().filter(metaWindow => {
             return metaWindow.is_on_primary_monitor() &&
                    metaWindow.showing_on_its_workspace() &&
+                   !metaWindow.is_hidden() &&
                    metaWindow.get_window_type() != Meta.WindowType.DESKTOP;
         });